package com.sloth.bear.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sloth.bear.dto.entity.Collect;
import com.sloth.bear.dto.request.CollectListRequest;
import com.sloth.bear.dto.request.CreateCollectRequest;
import com.sloth.bear.dto.vo.CollectListVo;

import java.util.List;

/**
 * 收藏项Service
 */
public interface CollectService extends IService<Collect> {

    /**
     * 创建收藏项
     */
    Long createCollect(CreateCollectRequest request);

    /**
     * 分页查询收藏项
     */
    List<CollectListVo> listCollect(CollectListRequest request);

    /**
     * 更新收藏项
     */
    void updateCollect(Long id, CreateCollectRequest request);

    /**
     * 获取收藏项详情
     */
    CollectListVo detailsCollect(Long id);

    /**
     * 删除收藏项
     */
    void deleteCollect(Long id);
}